Optimal. Leaf size=80 \[ \frac {3 x^2}{16}-\frac {3 \cosh ^2(a+b x)}{16 b^2}-\frac {\cosh ^4(a+b x)}{16 b^2}+\frac {3 x \cosh (a+b x) \sinh (a+b x)}{8 b}+\frac {x \cosh ^3(a+b x) \sinh (a+b x)}{4 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3391, 30}
\begin {gather*} -\frac {\cosh ^4(a+b x)}{16 b^2}-\frac {3 \cosh ^2(a+b x)}{16 b^2}+\frac {x \sinh (a+b x) \cosh ^3(a+b x)}{4 b}+\frac {3 x \sinh (a+b x) \cosh (a+b x)}{8 b}+\frac {3 x^2}{16} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 3391
Rubi steps
\begin {align*} \int x \cosh ^4(a+b x) \, dx &=-\frac {\cosh ^4(a+b x)}{16 b^2}+\frac {x \cosh ^3(a+b x) \sinh (a+b x)}{4 b}+\frac {3}{4} \int x \cosh ^2(a+b x) \, dx\\ &=-\frac {3 \cosh ^2(a+b x)}{16 b^2}-\frac {\cosh ^4(a+b x)}{16 b^2}+\frac {3 x \cosh (a+b x) \sinh (a+b x)}{8 b}+\frac {x \cosh ^3(a+b x) \sinh (a+b x)}{4 b}+\frac {3 \int x \, dx}{8}\\ &=\frac {3 x^2}{16}-\frac {3 \cosh ^2(a+b x)}{16 b^2}-\frac {\cosh ^4(a+b x)}{16 b^2}+\frac {3 x \cosh (a+b x) \sinh (a+b x)}{8 b}+\frac {x \cosh ^3(a+b x) \sinh (a+b x)}{4 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 53, normalized size = 0.66 \begin {gather*} -\frac {16 \cosh (2 (a+b x))+\cosh (4 (a+b x))-4 b x (6 b x+8 \sinh (2 (a+b x))+\sinh (4 (a+b x)))}{128 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.22, size = 101, normalized size = 1.26
method | result | size |
risch | \(\frac {3 x^{2}}{16}+\frac {\left (4 b x -1\right ) {\mathrm e}^{4 b x +4 a}}{256 b^{2}}+\frac {\left (2 b x -1\right ) {\mathrm e}^{2 b x +2 a}}{16 b^{2}}-\frac {\left (2 b x +1\right ) {\mathrm e}^{-2 b x -2 a}}{16 b^{2}}-\frac {\left (4 b x +1\right ) {\mathrm e}^{-4 b x -4 a}}{256 b^{2}}\) | \(87\) |
default | \(\frac {3 x^{2}}{16}+\frac {\left (2 b x +2 a \right ) \sinh \left (2 b x +2 a \right )-\cosh \left (2 b x +2 a \right )-2 a \sinh \left (2 b x +2 a \right )}{8 b^{2}}+\frac {\left (4 b x +4 a \right ) \sinh \left (4 b x +4 a \right )-\cosh \left (4 b x +4 a \right )-4 a \sinh \left (4 b x +4 a \right )}{128 b^{2}}\) | \(101\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 96, normalized size = 1.20 \begin {gather*} \frac {3}{16} \, x^{2} + \frac {{\left (4 \, b x e^{\left (4 \, a\right )} - e^{\left (4 \, a\right )}\right )} e^{\left (4 \, b x\right )}}{256 \, b^{2}} + \frac {{\left (2 \, b x e^{\left (2 \, a\right )} - e^{\left (2 \, a\right )}\right )} e^{\left (2 \, b x\right )}}{16 \, b^{2}} - \frac {{\left (2 \, b x + 1\right )} e^{\left (-2 \, b x - 2 \, a\right )}}{16 \, b^{2}} - \frac {{\left (4 \, b x + 1\right )} e^{\left (-4 \, b x - 4 \, a\right )}}{256 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 114, normalized size = 1.42 \begin {gather*} \frac {16 \, b x \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} + 24 \, b^{2} x^{2} - \cosh \left (b x + a\right )^{4} - \sinh \left (b x + a\right )^{4} - 2 \, {\left (3 \, \cosh \left (b x + a\right )^{2} + 8\right )} \sinh \left (b x + a\right )^{2} - 16 \, \cosh \left (b x + a\right )^{2} + 16 \, {\left (b x \cosh \left (b x + a\right )^{3} + 4 \, b x \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right )}{128 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.29, size = 138, normalized size = 1.72 \begin {gather*} \begin {cases} \frac {3 x^{2} \sinh ^{4}{\left (a + b x \right )}}{16} - \frac {3 x^{2} \sinh ^{2}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{8} + \frac {3 x^{2} \cosh ^{4}{\left (a + b x \right )}}{16} - \frac {3 x \sinh ^{3}{\left (a + b x \right )} \cosh {\left (a + b x \right )}}{8 b} + \frac {5 x \sinh {\left (a + b x \right )} \cosh ^{3}{\left (a + b x \right )}}{8 b} + \frac {3 \sinh ^{4}{\left (a + b x \right )}}{32 b^{2}} - \frac {5 \cosh ^{4}{\left (a + b x \right )}}{32 b^{2}} & \text {for}\: b \neq 0 \\\frac {x^{2} \cosh ^{4}{\left (a \right )}}{2} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 86, normalized size = 1.08 \begin {gather*} \frac {3}{16} \, x^{2} + \frac {{\left (4 \, b x - 1\right )} e^{\left (4 \, b x + 4 \, a\right )}}{256 \, b^{2}} + \frac {{\left (2 \, b x - 1\right )} e^{\left (2 \, b x + 2 \, a\right )}}{16 \, b^{2}} - \frac {{\left (2 \, b x + 1\right )} e^{\left (-2 \, b x - 2 \, a\right )}}{16 \, b^{2}} - \frac {{\left (4 \, b x + 1\right )} e^{\left (-4 \, b x - 4 \, a\right )}}{256 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.15, size = 68, normalized size = 0.85 \begin {gather*} \frac {3\,x^2}{16}-\frac {\frac {3\,{\mathrm {cosh}\left (a+b\,x\right )}^2}{16}+\frac {{\mathrm {cosh}\left (a+b\,x\right )}^4}{16}-b\,\left (\frac {x\,\mathrm {sinh}\left (a+b\,x\right )\,{\mathrm {cosh}\left (a+b\,x\right )}^3}{4}+\frac {3\,x\,\mathrm {sinh}\left (a+b\,x\right )\,\mathrm {cosh}\left (a+b\,x\right )}{8}\right )}{b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________